<%@ include file="/common/taglibs.jsp" %>

<head>
    <title><fmt:message key="login.title"/></title>
    <meta name="menu" content="Login"/>
</head>
<body id="login">
<div class="row-fluid">
	<div class="span7">
		<c:import url="instruct.jsp"></c:import>
	</div>
	<div class="span5">
	<!-- 	<div class="row-fluid"> -->
	<!-- 		<div class="span12"> -->
				<form method="post" id="loginForm" action="<c:url value='/j_security_check'/>"
				    onsubmit="saveUsername(this);return validateForm(this)"  autocomplete="off">
				    <h4 class="form-signin-heading">
				        <fmt:message key="login.heading"/>
				    </h4>
				<c:if test="${param.error != null}">
				    <div class="alert alert-error fade in">
				        <fmt:message key="errors.password.mismatch"/>
				    </div>
				</c:if>
					<div class="row-fluid">
						<div class="span5">
				    		<input type="text" name="j_username" id="j_username" class="input-block-level pull-left"
				           		placeholder="<fmt:message key="label.username"/>" required tabindex="1">
				    	</div>
				    	<div class="span5">
				    		<input type="password" class="input-block-level pull-right" name="j_password" id="j_password" tabindex="2"
				           		placeholder="<fmt:message key="label.password"/>" required>
				        </div>
				        <div class="span2">
				        	 <button type="submit" class="btn btn-small btn-primary" name="login" tabindex="4">
				        		<fmt:message key='button.login'/>
				    		 </button>
				        </div>
					</div>
					<div class="row-fluid">
						<div class="span5">
							<c:if test="${appConfig['rememberMeEnabled']}">
				    			<label class="checkbox" for="rememberMe">
				        		<input type="checkbox" name="_spring_security_remember_me" id="rememberMe" tabindex="3"/>
				        			<fmt:message key="login.rememberMe"/></label>
							</c:if>
						</div>
						<div class="span5">
							<p class="pull-left"><fmt:message key="login.passwordHint"/></p>
						</div>
						<div class="span2"></div>
					</div>
				   
				</form>
				
	<!-- 			<p> -->
	<%-- 			    <fmt:message key="login.signup"> --%>
	<%-- 			        <fmt:param><c:url value="/signup"/></fmt:param> --%>
	<%-- 			    </fmt:message> --%>
	<!-- 			</p> -->
	<!-- 		</div> -->
	<!-- 	</div> -->
		<div class="sign-up">
		</div>
	
	<c:set var="scripts" scope="request">
	<%@ include file="/scripts/login.js"%>
	</c:set>
	
	</div>
</div>
</body>